﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="scripts/htmlEscape.js"></script>
    <script src="scripts/prototype.js"></script>
    <script src="scripts/Slider.js"></script>
    <script src="scripts/SiteController.js"></script>
    <script src="scripts/OffersNS.js"></script>
    <script src="scripts/jQuery-1.9.1.js"></script>
    <script src="scripts/jquery-ui/js/jquery-ui-1.10.3.custom.js"></script>
    <script src="scripts/SocialButtons.js"></script>
    <link href="scripts/jquery-ui/css/excite-bike/jquery-ui.css" rel="stylesheet" />
    <script src="scripts/web-storage-objects.js"></script>
    <link href="styles/offers.css" rel="stylesheet" />
    <link href="styles/slider.css" rel="stylesheet" />
</head>
<body>
    <div id="main-div"></div>
    <div id="fb-root"></div>

    <script>
        var turkeyExcursionItinerary = new OffersNS.Itinerary();

        turkeyExcursionItinerary.add({
            city: "Istanbul",
            description: "Visit 1, 2, 3",
        });

        turkeyExcursionItinerary.add({
            city: "Ankara",
            description: "Visit this and that",
        });
    </script>
    <script src="data/offers.js"></script>
    <script>
        var controller = new SiteController("#main-div");
        $.each(offers, function (index, offer) {
            switch (offer.type) {
                case "cruise":
                    controller.addCruise(offer);
                    break;
                case "excursions":
                    controller.addExcursion(offer);
                    break;
                case "holidays":
                    controller.addPackageHolliday(offer);
                    break;
                default:
                    alert("Failed read JSON");
            }
        });
        controller.render();

    </script>
</body>
</html>
